package com.hison.service;

import com.hison.domian.entity.SysMenu;
import com.baomidou.mybatisplus.extension.service.IService;


import java.awt.*;
import java.util.List;

/**
* @author hison
* @description 针对表【sys_menu(菜单权限表)】的数据库操作Service
* @createDate 2024-01-14 15:39:22
*/
public interface SysMenuService extends IService<SysMenu> {
    //查询用户的权限信息
    List<String> selectPermsByUserId(Long id);

    //查询用户的路由信息，也就是查询权限菜单
    List<SysMenu> selectRouterMenuTreeByUserId(Long userId);

    //查询菜单列表
    List<SysMenu> selectMenuList(SysMenu menu);

    //删除菜单-判断是否存在子菜单
    boolean hasChild(Long menuId);


    List<Long> selectMenuListByRoleId(Long roleId);
}
